//
//  NBJSuggestionAnnotation.m
//  nbj
//
//  Created by Francois Proulx on 09-10-04.
//  Copyright 2009 Toujours Saoul. All rights reserved.
//

#import "NBJSuggestionAnnotation.h"


@implementation NBJSuggestionAnnotation

- (id)initWithCoordinate:(CLLocationCoordinate2D)someCoordinate
{
	self = [super init];
	if (self != nil) {
		coordinate = someCoordinate;
	}
	return self;
}

- (NSString *) externalMapUrlString
{
	return [NSString stringWithFormat:@"http://maps.google.com/maps?f=q&q=Suggestion+de+bar@%f,%f&z=19", coordinate.latitude, coordinate.longitude];
}

#pragma mark -
#pragma mark MKAnnotation protocol

- (void) changeCoordinate:(CLLocationCoordinate2D)someCoordinate
{
	[self willChangeValueForKey:@"coordinate"];
	coordinate = someCoordinate;
	[self didChangeValueForKey:@"coordinate"];
}

- (CLLocationCoordinate2D) coordinate
{
	return coordinate;
}

- (NSString *)title
{
	return @"Suggérez un bar par mail";
}

- (NSString *)subtitle
{
	return @"Vous pouvez me repositionner !";
}

@end
